package com.wanxi;

public class Util {

    // 封装输出
    public static void print(String message, Object... params) {
        for (int i = 1; i <= params.length; i++) {
            // 替换占位符
            message = message.replace("{" + i + "}", params[i - 1] + "");
        }
        System.out.println(message);
    }
}
